	.text

main:
begin_func_main:
begin_block_0:
	addi $sp, $sp, -4 	# int a
	addi $sp, $sp, -4 	# int b
	li $t0, 0
	sw $t0, 4($sp)
	lw $t0, 4($sp)
	sw $t0, 0($sp)
while_cond_0:
begin_block_while_cond_0:
	li $t0, 1
	move $s0, $t0
	addi $sp, $sp, 0
end_block_while_cond_0:
	bne $s0, $zero, while_body_0
	beq $s0, $zero, while_end_0
while_body_0:
begin_block_1:
	lw $t0, 4($sp)
	li $t1, 1
	add $t0, $t0, $t1
	sw $t0, 4($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str0: .asciiz " "
	.text
la $t0, str0
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	lw $t0, 4($sp)
	li $t1, 5
	seq $t0, $t0, $t1
	move $s0, $t0
	bne $s0, $zero, begin_if_0
	beq $s0, $zero, begin_else_0
begin_if_0:
begin_block_2:
	addi $sp, $sp, -4 	# int b
	li $t0, 3
	sw $t0, 0($sp)
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str1: .asciiz "\n"
	.text
la $t0, str1
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 4
	b while_end_0
	addi $sp, $sp, 4
end_block_2:
	b end_if_0
begin_else_0:
	b end_if_0
end_if_0:
	addi $sp, $sp, 0
end_block_1:
	b while_cond_0
while_end_0:
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str2: .asciiz "\n"
	.text
la $t0, str2
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	li $t0, 1
	sw $t0, 4($sp)
for_cond_0:
begin_block_for_cond_0:
	lw $t0, 4($sp)
	li $t1, 10
	slt $t0, $t0, $t1
	move $s0, $t0
	addi $sp, $sp, 0
end_block_for_cond_0:
	bne $s0, $zero, for_body_0
	beq $s0, $zero, for_end_0
for_inc_0:
begin_block_for_inc_0:
	lw $t0, 4($sp)
	li $t1, 1
	add $t0, $t0, $t1
	sw $t0, 4($sp)
	addi $sp, $sp, 0
end_block_for_inc_0:
	b for_cond_0
for_body_0:
begin_block_3:
	lw $t0, 4($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str3: .asciiz " "
	.text
la $t0, str3
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	lw $t0, 4($sp)
	li $t1, 5
	seq $t0, $t0, $t1
	move $s0, $t0
	bne $s0, $zero, begin_if_1
	beq $s0, $zero, begin_else_1
begin_if_1:
begin_block_4:
	addi $sp, $sp, -4 	# int b
	li $t0, 3
	sw $t0, 0($sp)
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str4: .asciiz "\n"
	.text
la $t0, str4
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 4
	b for_end_0
	addi $sp, $sp, 4
end_block_4:
	b end_if_1
begin_else_1:
	b end_if_1
end_if_1:
	addi $sp, $sp, 0
end_block_3:
	b for_inc_0
for_end_0:
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str5: .asciiz "\n"
	.text
la $t0, str5
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 8
end_block_0:
end_func_main:
	jr $ra

